package com.jlkf.dao;

import java.util.List;
import java.util.Map;

import com.jlkf.pojo.TblSysUser;

public interface TblSysUserMapper {
    int deleteByPrimaryKey(Integer gId);

    int insert(TblSysUser record);

    int insertSelective(TblSysUser record);

    TblSysUser selectByPrimaryKey(Integer gId);

    int updateByPrimaryKeySelective(TblSysUser record);

    int updateByPrimaryKey(TblSysUser record);
    
    //后台登录
    TblSysUser loginUser(Map<String, Object> map);
    
    //账号列表
    List<TblSysUser> selectSysUserList(Map<String, Object> map);	
    
    //批量删除
    int deleteList(List<String> list);
    
    //重置密码
    int updatePwd(Map<String, Object> map);
    
    //是否绑定角色
    Integer isBandRole(Integer rId);
    
    List<TblSysUser> selectAgentList();
    
    //启用或禁用
    int updateStatus(Map<String,Object> map);
    
    int selectByAccount(String account); //是否存在该账号
}